#!/bin/bash

if [ ! -f util/.serverpod_util_root ]; then
    echo "Run this script from the root of the Serverpod repository"
    echo "I.e. util/run_tests_e2e"
    exit 1
fi

# Makes script exit on first non-zero error code
set -e

cd tests/docker/tests_e2e

export PLATFORM=$1
docker compose up --abort-on-container-exit --exit-code-from tests --build --remove-orphans 